///
/// Banner 对象
///
class BannerModel {
  final int id;
  final String pic;
  final int addrType;
  final String addr;
  final String title;
  final String subtitle;

  BannerModel({this.id, this.pic, this.addrType, this.addr, this.title, this.subtitle});

  factory BannerModel.fromJson(Map<String, dynamic> json) {
    return BannerModel(
        id: json['id'],
        pic: json['pic'],
        addrType: json['addrType'],
        addr: json['addr'],
        title: json['title'],
        subtitle: json['subtitle']);
  }
}
